<include file="Public/common" />
<block>
    <link rel="stylesheet" href="__STATIC__/layui/css/layui.css"  media="all">
    <style>
        .col-xs-3{margin-top:5px;}
        th{text-align: center;}
    </style>
</block>
<block name="content">
    <div class="page-header"><h1>首页 &gt;商家管理 > 景区供应商 > 合作记录</h1></div>

    <div class="col-xs-12"  style="margin-top:10px;">
        <if condition="checkAuth('Dealer/Shops/exportScenicPartnerRecord')">
            <a href="{:U('exportScenicPartnerRecord',array('id'=>I('id')))}" class="btn btn-primary btn-xs pull-right" style="margin-right: 10px">导出</a>
        </if>

    </div>

    <table class="table table-striped table-bordered table-hover table-condensed text-center">
        <thead>
            <tr>
                <th class="filtrate_1" >供应商名称 <!--<input type="checkbox" class="checkAll">--></th>
                <th class="filtrate_2" >线路名称</th>
                <th class="filtrate_4" >团号</th>
                <th class="filtrate_5" >项目</th>
                <th class="filtrate_7" >数量</th>
                <th class="filtrate_7" >结算金额</th>
                <th class="filtrate_7" >结算时间</th>
                <th class="filtrate_7" >操作人（结算）</th>
            </tr>
        </thead>
        <tbody>
            <volist name="list" id="vo">
                <tr >
                    <td class="filtrate_1" >{$vo.supplier_name} <!--<input type="checkbox" class="chk">--></td>
                    <td class="filtrate_2">{$vo.line_name}</td>
                    <td class="filtrate_4">{$vo.group_num}</td>
                    <td class="filtrate_5">景区</td>
                    <td class="filtrate_6">{$vo.headcount}</td>
                    <td class="filtrate_6">{$vo.unit_cost}</td>
                    <td class="filtrate_6">
                        <if condition="$vo['closing_time']">
                            {$vo.closing_time|date="Y-m-d",###}
                            <else/>
                            无
                        </if>
                    </td>
                    <td class="filtrate_6">{$vo.operator_name|default="无"}</td>
                </tr>
            </volist>
        <tr>
            <td colspan="10">
                <!--分页样式-->
                <ul class="pagination">
                    {$show}
                </ul>
            </td>
        </tr>
        </tbody>
    </table>

</block>
<block name="js">
<script src=""></script>
<script src="__STATIC__/layui/layui.all.js"></script>
<script src="__STATIC__/layui/layui.js"></script>
<script>
/**
 * 打开订单详情页面
 * @param  {[int]}    orderId     [订单id]
 */

//筛选显示
$('body').on('change','.filtrate',function () {
   var id=$(this).val();
   if($(this).is(':checked')){
        $('.filtrate_'+id).show();
   }else{
       $('.filtrate_'+id).hide();
   }
});

</script>
</block>
